Fix/8544 mac linux unprivileged reenroll#9603
Closed
kaanyalti wants to merge 8 commits intoelastic:mainfrom
Closed
Fix/8544 mac linux unprivileged reenroll#9603kaanyalti wants to merge 8 commits intoelastic:mainfrom
kaanyalti wants to merge 8 commits intoelastic:mainfrom
Conversation
83cf268 to
b62e62a
Compare
b62e62a to
dcf303a
Compare
added 4 commits
August 27, 2025 19:54
dcf303a to
b716e9f
Compare
Contributor
|
|
Author
|
changed branch name, automatically closed. |
Contributor
|
Merged
ebeahan
added a commit
that referenced
this pull request
Sep 18, 2025
* update changelog for 9.1.4 * relocate * Remove PR links from changelog entries * Update release notes for version 9.1.4 * remove PR #9603 --------- Co-authored-by: Colleen McGinnis <colleen.mcginnis@elastic.co> Co-authored-by: Pierre HILBERT <pierre.hilbert@elastic.co>
mergify Bot
pushed a commit
that referenced
this pull request
Sep 18, 2025
* update changelog for 9.1.4 * relocate * Remove PR links from changelog entries * Update release notes for version 9.1.4 * remove PR #9603 --------- Co-authored-by: Colleen McGinnis <colleen.mcginnis@elastic.co> Co-authored-by: Pierre HILBERT <pierre.hilbert@elastic.co> (cherry picked from commit 6cda380)
colleenmcginnis
pushed a commit
that referenced
this pull request
Sep 18, 2025
* update changelog for 9.1.4 * relocate * Remove PR links from changelog entries * Update release notes for version 9.1.4 * remove PR #9603 --------- (cherry picked from commit 6cda380) Co-authored-by: Eric Beahan <eric.beahan@elastic.co> Co-authored-by: Colleen McGinnis <colleen.mcginnis@elastic.co> Co-authored-by: Pierre HILBERT <pierre.hilbert@elastic.co>
intxgo
pushed a commit
to intxgo/elastic-agent
that referenced
this pull request
Sep 24, 2025
* update changelog for 9.1.4 * relocate * Remove PR links from changelog entries * Update release notes for version 9.1.4 * remove PR elastic#9603 --------- (cherry picked from commit 6cda380) Co-authored-by: Eric Beahan <eric.beahan@elastic.co> Co-authored-by: Colleen McGinnis <colleen.mcginnis@elastic.co> Co-authored-by: Pierre HILBERT <pierre.hilbert@elastic.co>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


What does this PR do?
Updates the enroll command so that the file permissions are fixed when a privileged user executes it on an unprivileged agent. Implemented only for mac/linux. Windows implementation will be in a follow up pr as it will be a bit more involved.
Why is it important?
Currently a root user needs to run
sudo -u elastic-agent-user elastic-agent enroll ...in order to re-enroll an unprivileged agent.Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files./changelog/fragmentsusing the changelog toolDisruptive User Impact
None
How to test this PR locally
--unprivilegedflagRelated issues